package com.frank.globalException.domain;

/**
 * @author 小石潭记
 * @date 2020/10/22 9:55
 * @Description: ${todo}
 */
public enum EnumError {

    SERVER_ERROR(500, "服务器异常,请联系系统运维人员"),
    BAD_REQUEST(400, "请求异常"),
    OTHER_ERROR(404, "系统异常"),
    EXCEL_COLUMN_ERROR(401, "上传的表格列数异常"),
    EXCEL_TEMPLATE(402, "excel格式有误"),
    INVALID_PARAMS(501, "excel有不合法的信息"),
    USER_INFO_ERROR(500, "插入的的对象属性不能全为空")
    ;

    private int status;
    private String reason;

    EnumError(int status, String reason) {
        this.status = status;
        this.reason = reason;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }
}
